package com.fatmeraid.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "扶贫政策实体类")
@TableName("policy_info")
public class Policy {
    @Schema(description = "政策id")
    @TableId(type = IdType.AUTO, value = "policy_id")
    private Integer policyId;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "政策内容")
    private String content;

    @Schema(description = "政策类型")
    private String policyType;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "发布人id")
    private Long publisherId;

    @Schema(description = "状态：1-正常，0-禁用")
    private Integer status;

    // 逻辑删除
    @Schema(description = "删除标志：0-正常，1-删除")
    @TableLogic(value = "0", delval = "1")
    @TableField("`delete`")
    private Integer delete;


}